<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.14/vue.common.dev.js"></script>
  <link href="__CDN__/assets/szxc/style/index.css" rel="stylesheet" />
  <!-- 引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<style>
  .sunVillage {
    width: 100%;
    height: 100%;
    background: url('/assets/szxc/assets/img/xx_cw.93ada42d.jpg') no-repeat;
    background-size: 100% 100%;
  }

  .sunVillage img {
    position: absolute;
    left: 30px;
    top: 30px;
  }

  .sunVillage ul {
    height: 300px;
    width: 80%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .sunVillage ul li {
    width: 150px;
    height: 150px;
    background: #fff0b4;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
  }

  .sunVillage ul li::after {
    content: '';
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -55px;
    left: 0;
    width: 150px;
    height: 60px;
    background: url() no-repeat;
    background-size: 100% 100%;
  }

  .sunVillage ul li img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 50px;
    height: 50px;
  }

  .sunVillage ul li a {
    position: absolute;
    color: #fff;
    font-size: 14px;
    top: -20px;
    z-index: 10;
  }
</style>

<body>
  <div id="app">
    <div class="sunVillage">
      <img
        src="" />
      <ul>
        <li v-for="(item, index) in list" @click="$router.push(item.path)" :key="index">
          <img :src="item.img" />
          <a>{{ item.name }}</a>
        </li>
      </ul>
    </div>
  </div>
  <script type="module">
    var app = new Vue({
      el: '#app',
      data() {
        return {
          list: [
            { name: '村情介绍', path: '/sunVillage/intro', img: '/assets/szxc/assets/img/dangzheng.png' },
            { name: '三资管理', path: '/sunVillage/property', img: '/assets/szxc/assets/img/dangzheng.png' },
            { name: '党务公开', path: '/sunVillage/PartyAffairs', img: '/assets/szxc/assets/img/dangzheng.png' },
            { name: '财务公开', path: '/sunVillage/finance', img: '/assets/szxc/assets/img/dangzheng.png' },
            { name: '村务公开', path: '/sunVillage/VillageAffairs', img: '/assets/szxc/assets/img/dangzheng.png' }
          ]
        }
      }
    })
  </script>
</body>

</html>